/*  1:   */ package org.intellij.plugins.relaxNG;
/*  2:   */ 
/*  3:   */

import com.intellij.navigation.ChooseByNameContributor;
import com.intellij.navigation.NavigationItem;
import com.intellij.openapi.project.Project;
import com.intellij.util.ArrayUtil;
import org.intellij.plugins.relaxNG.model.resolve.RelaxSymbolIndex;
import org.jetbrains.annotations.NotNull;

import java.util.Collection;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class GotoSymbolContributor
/* 12:   */   implements ChooseByNameContributor
/* 13:   */ {
/* 14:   */   @NotNull
/* 15:   */   public NavigationItem[] getItemsByName(String paramString1, String paramString2, Project paramProject, boolean paramBoolean)
/* 16:   */   {
/* 17:37 */     NavigationItem[] tmp7_4 = RelaxSymbolIndex.getSymbolsByName(paramString1, paramProject, paramBoolean);
/* 18:37 */     if (tmp7_4 == null) {
/* 19:37 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/plugins/relaxNG/GotoSymbolContributor", "getItemsByName" }));
/* 20:   */     }
/* 21:37 */     return tmp7_4;
/* 22:   */   }
/* 23:   */   
/* 24:   */   @NotNull
/* 25:   */   public String[] getNames(Project paramProject, boolean paramBoolean)
/* 26:   */   {
/* 27:42 */     Collection localCollection = RelaxSymbolIndex.getSymbolNames(paramProject); String[] 
/* 28:43 */       tmp9_6 = ArrayUtil.toStringArray(localCollection);
/* 29:43 */     if (tmp9_6 == null) {
/* 30:43 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/plugins/relaxNG/GotoSymbolContributor", "getNames" }));
/* 31:   */     }
/* 32:43 */     return tmp9_6;
/* 33:   */   }
/* 34:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.GotoSymbolContributor

 * JD-Core Version:    0.7.0.1

 */